|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.realtime.Scheduler
An instance of Scheduler
manages the
execution of schedulable objects and may implement a feasibility algorithm.
The feasibility algorithm may determine if the known set of schedulable objects,
given their particular execution ordering (or priority assignment), is a feasible
schedule. Subclasses of Scheduler
are used
for alternative scheduling policies and should define an instance()
class method to return the default instance of the subclass. The name of the subclass
should be descriptive of the policy, allowing applications to deduce the policy
available for the scheduler obtained via public static Scheduler
getDefaultScheduler()
, e.g., EDFScheduler
.
Constructor Summary | |
protected |
Scheduler()
Void constructor. |
Method Summary | |
protected abstract boolean |
addToFeasibility(Schedulable schedulable)
Inform the scheduler and cooperating facilities that the resouce demands (as expressed in the associated instances of SchedulingParameters ,
ReleaseParameters ,
MemoryParameters , and
ProcessingGroupParameters )
of this instance of
Schedulable will be considered in the
feasibility analysis of the associated
Scheduler until further notice. |
abstract void |
fireSchedulable(Schedulable schedulable)
Trigger the execution of a schedulable object (like an AsynchEventHandler ). |
static Scheduler |
getDefaultScheduler()
|
abstract java.lang.String |
getPolicyName()
|
abstract boolean |
isFeasible()
|
protected abstract boolean |
removeFromFeasibility(Schedulable schedulable)
|
static void |
setDefaultScheduler(Scheduler scheduler)
Set the default scheduler. |
boolean |
setIfFeasible(Schedulable schedulable,
ReleaseParameters release,
MemoryParameters memory)
Returns true if, after considering the values of the parameters, the task set would still be feasible. |
boolean |
setIfFeasible(Schedulable schedulable,
ReleaseParameters release,
MemoryParameters memory,
ProcessingGroupParameters group)
Returns true if, after considering the values of the parameters, the task set would still be feasible. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
protected Scheduler()
Method Detail |
protected abstract boolean addToFeasibility(Schedulable schedulable)
SchedulingParameters
,
ReleaseParameters
,
MemoryParameters
, and
ProcessingGroupParameters
)
of this instance of
Schedulable
will be considered in the
feasibility analysis of the associated
Scheduler
until further notice.
Whether the resulting system is feasible or not, the addition is completed.
schedulable
- The schedulable object to be added.
public abstract void fireSchedulable(Schedulable schedulable)
AsynchEventHandler
).
schedulable
- The schedulable object to make active.public static Scheduler getDefaultScheduler()
public abstract java.lang.String getPolicyName()
String
object which is the name of
the scheduling policy used by this.public abstract boolean isFeasible()
protected abstract boolean removeFromFeasibility(Schedulable schedulable)
schedulable
- The schedulable object to be removed from feasibility
analysis.
public static void setDefaultScheduler(Scheduler scheduler)
RealTimeThread
when they are constructed. The default scheduler is set to the required
PriorityScheduler
at startup.
scheduler
- The scheduler that becomes the default scheduler assigned to new threads.
If null, nothing happens.public boolean setIfFeasible(Schedulable schedulable, ReleaseParameters release, MemoryParameters memory)
schedulable
- release
- memory
-
public boolean setIfFeasible(Schedulable schedulable, ReleaseParameters release, MemoryParameters memory, ProcessingGroupParameters group)
schedulable
- release
- memory
- group
-
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |